class Chambre < ActiveRecord::Base
  
  has_many :reservations
  has_many :clients, :through => :reservations
  
  STATUS = ["Libre", "Occupée"]
  
  def self.find_chambre_libre
    find(:all, :conditions => ["status = ? ", "Libre"])
  end
  
  
end
